package com.hhs.storage.controller;


import com.hhs.storage.bean.Result;
import com.hhs.storage.bean.YymHaibao;
import com.hhs.storage.bean.YymHuiyuanTc;
import com.hhs.storage.service.YymHaibaoService;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yuanjun
 * @since 2020-08-21
 */
@RestController
@RequestMapping("/do/yymhaibao")
public class YymHaibaoController {
    @Resource
    YymHaibaoService yymHaibaoService;
    @RequestMapping(value = "save")
    public Map<String,Object> generate(YymHaibao haibao) throws Exception{
        boolean ok = yymHaibaoService.insertOrUpdate(haibao);
        return Result.sucJsonResp(ok);
    }
}

